<?php $p = $this->profile; ?>

<div class="block">
    <h2><?= $p['firstname'] ?> <?= $p['lastname'] ?></h2>
    <br />
    <p><?= $p['age'] ?></p>
    <p><?= $p['city_name']; ?></p>
</div>

<div class="block">
    <a href="<?= $this->L('profile', 'view', array('user_id' => $p['id'])) ?>">Main</a>
    <a href="#">Photos</a>
    <a href="#">Compliments</a>
</div>

<div class="block">
    <h2>
        Reviews by <?= $p['firstname'] ?> <?= $p['lastname'] ?>,
        <a href="<?= $this->L('profile', 'view', array('user_id' => $p['id'])) ?>">(View profile)</a>
    </h2>
    <br />
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <?php foreach ($this->reviews as $r) { ?>
        <tr>
            <td>
                <img src="<?= $this->commonUrl ?>/images/profile_avatar.jpg" width="96" height="81" alt="#" />
            </td>
            <td>
                <div style="margin-bottom:20px;">
                <p><a href="/restaurant/166862">Brookville Chicken</a> <span><?= $r['created_at'] ?></span></p>
                <br />
                <p><?= $r['description'] ?></p>
                <br />
                <a style="color:#b4b1ac;" href="#">Was this review helpful to you ?</a>
                <a class="yes" href="#">YES</a>
                <a class="no" href="#">NO</a>
                <a href="#">Add Your Review</a>
                <a href="#">Report this Review</a>
                </div>
            </td>
        </tr>
        <?php } ?>
    </table>
</div>